package com.lijiajia.cloud.common.core.business;

/**
 * 业务状态状态码
 *
 * @author lijiajia
 * @since 2019-04-05
 */
public enum BaseStatus implements BusinessStatus {
    SUCCESS,
    ERROR("当前服务不可用,请稍后重试"),
    PARAM_EMPTY("参数不能为空"),
    PARAM_ERROR("参数错误"),
    ;

    private String msg;

    BaseStatus() {
    }

    BaseStatus(String msg) {
        this.msg = msg;
    }

    @Override
    public String code() {
        return super.name().toLowerCase();
    }
    
    @Override
    public String msg() {
        return msg;
    }
}
